package com.cs.study.homework._0301;

import java.io.File;


public class Demo4 {
    public static void main(String[] args) {
        File file = new File("E\\a");
        findAllDir(file);
    }


    private static void findAllDir(File file) {
        File[] list = file.listFiles();
        for (File file1 : list) {
            if (file1.isDirectory()) {
                findAllDir(file1);
            }else {
                System.out.println(file.getAbsolutePath() +" = " + file.delete());
            }
        }
        System.out.println(file.getAbsolutePath() + " = " + file.delete());
    }
}
